<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="824.42">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica; min-height: 22.0px}
    p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
    p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
    p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco}
    p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; min-height: 16.0px}
    p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #bf0000}
    p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #0000bf}
    span.s1 {font: 18.0px Helvetica}
    span.s2 {color: #0000bf}
    span.s3 {color: #bf0000}
    span.s4 {color: #000000}
    span.Apple-tab-span {white-space:pre}
  </style>
</head>
<body>
<p class="p1"><span class="s1"><b>BFManipulate<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b></span><b>BFormat sound manipulation</b></p>
<p class="p2"><b></b><br></p>
<p class="p3"><b>BFManipulate.ar(w, x, y, z, rotate, tilt, tumble)</b></p>
<p class="p4"><br></p>
<p class="p3">Manipulates the entire soundfiled of a BFormat signal around an the x-, y-, or z-axis.</p>
<p class="p3"><b>w, x, y, z</b> - the B-format signals.<span class="Apple-converted-space"> </span></p>
<p class="p3"><b>rotate</b> - rotate the soundfiled around the z-axis (left to right) in radians.</p>
<p class="p3"><b>tilt</b> - rotate about the x- axis (clock-wise and counter-clock-wise) in radians</p>
<p class="p3"><b>tumble </b>- rotate about the y axis (up and down) in radians</p>
<p class="p4"><br></p>
<p class="p3">s=<span class="s2">Server</span>.internal.boot;</p>
<p class="p5">(</p>
<p class="p5">{</p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="s2">var</span> w, x, y, z, p, a, b, c, d;</p>
<p class="p6"><span class="Apple-tab-span">	</span></p>
<p class="p5"><span class="Apple-tab-span">	</span>p = <span class="s2">Resonz</span>.ar(<span class="s2">PinkNoise</span>.ar(100), 440, 0.01) *</p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s2">LFSaw</span>.kr(2, pi, -0.2, 0.2); <span class="s3">// source</span></p>
<p class="p5"><span class="Apple-tab-span">	</span>q = <span class="s2">Resonz</span>.ar(<span class="s2">PinkNoise</span>.ar(100), 330, 0.01)<span class="Apple-converted-space">  </span>*<span class="Apple-converted-space"> </span></p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s2">LFSaw</span>.kr(2, pi, -0.2, 0.2); <span class="s3">// source</span></p>
<p class="p6"><br></p>
<p class="p7"><span class="s4"><span class="Apple-tab-span">	</span></span>// B-format encode</p>
<p class="p5"><span class="Apple-tab-span">	</span>#w, x, y, z = <span class="s2">BFEncode1</span>.ar(p, -0.25pi, 1) +<span class="Apple-converted-space"> </span></p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s2">BFEncode1</span>.ar(<span class="s2">DelayC</span>.ar(q, 0.2, 0.2), 0.25pi, 1);</p>
<p class="p6"><span class="Apple-tab-span">	</span></p>
<p class="p5"><span class="Apple-tab-span">	</span>#a, b, c, d = <span class="s2">BFManipulate</span>.ar(w, x, y, z,<span class="Apple-converted-space"> </span></p>
<p class="p8"><span class="s4"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>MouseX<span class="s4">.kr(-pi, pi), 0, </span>MouseY.kr(-pi, pi)<span class="s4">);</span></p>
<p class="p7"><span class="s4"><span class="Apple-tab-span">	</span></span>// B-format decode to cube / quad</p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="s2">BFDecode1</span>.ar(a, b, c, d,<span class="Apple-converted-space"> </span></p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[-0.25pi, 0.25pi, 0.75pi, 1.25pi,-0.25pi, 0.25pi, 0.75pi, 1.25pi],<span class="Apple-converted-space"> </span></p>
<p class="p5"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[0.25pi,0.25pi,0.25pi,0.25pi,-0.25pi,-0.25pi,-0.25pi,-0.25pi,]);<span class="Apple-tab-span">	</span></p>
<p class="p5">}.scope(8);</p>
<p class="p5">)</p>
</body>
</html>
